/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package libs.Clases;

/**
 *
 * @author PHENOM II
 */
public class Game {
    /*2011-01-04 00:53:14 	Dota -aremso GhostGraz #454 	PUB 		Witch Doctor 	0 	12 	13 	0 	49 	5 	8 	LOST*/

   
    private String Date;
    private String Name;
    private String Type;
    private String Hero;
    private int Kills;
    private int Deaths;
    private int Assists;
    private double kdRatio;
    private int CreepK;
    private int CreepD;
    private int NeutralK;
    private String Result;

    public Game() {
    }

    public Object getTotalValueAt(int col) {
        switch (col) {
            case 0:
                return Date;
            case 1:
                return Name;
            case 2:
                return Type;
            case 3:
                return Hero;
            case 4:
                return Kills;
            case 5:
                return Deaths;
            case 6:
                return Assists;
            case 7:
                return kdRatio;
            case 8:
                return CreepK;
            case 9:
                return CreepD;
            case 10:
                return NeutralK;
            case 11:
                return Result;
            default:
                return "N/D";
        }
    }

    public int getAssists() {
        return Assists;
    }

    public void setAssists(int Assists) {
        this.Assists = Assists;
    }

    public int getCreepD() {
        return CreepD;
    }

    public void setCreepD(int CreepD) {
        this.CreepD = CreepD;
    }

    public int getCreepK() {
        return CreepK;
    }

    public void setCreepK(int CreepK) {
        this.CreepK = CreepK;
    }

    public String getDate() {
        return Date;
    }

    public void setDate(String Date) {
        this.Date = Date;
    }

    public int getDeaths() {
        return Deaths;
    }

    public void setDeaths(int Deaths) {
        this.Deaths = Deaths;
    }

    public String getHero() {
        return Hero;
    }

    public void setHero(String Hero) {
        this.Hero = Hero;
    }

    public int getKills() {
        return Kills;
    }

    public void setKills(int Kills) {
        this.Kills = Kills;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public int getNeutralK() {
        return NeutralK;
    }

    public void setNeutralK(int NeutralK) {
        this.NeutralK = NeutralK;
    }

    public String getResult() {
        return Result;
    }

    public void setResult(String Result) {
        this.Result = Result;
    }

    public String getType() {
        return Type;
    }

    public void setType(String Type) {
        this.Type = Type;
    }

    public double getKdRatio() {
        return kdRatio;
    }

    public void setKdRatio(double kdRatio) {
        this.kdRatio = kdRatio;
    }

    public void parseLine(String[] data) {
        Date = data[0];
        Name = data[1];
        Type = data[2];
        Hero = data[4];
        Kills = Integer.valueOf(data[5]).intValue();
        Deaths = Integer.valueOf(data[6]).intValue();
        Assists = Integer.valueOf(data[7]).intValue();
        kdRatio = Integer.valueOf(data[8]).intValue();
        CreepK = Integer.valueOf(data[9]).intValue();
        CreepD = Integer.valueOf(data[10]).intValue();
        NeutralK = Integer.valueOf(data[11]).intValue();
        Result = data[12];
    }
}
